Time shared digital and analog process control

ABSTRACT

A digital computer is used in a time sharing technique to control a plurality of control circuits. The frequency of sampling fs may be low in comparison with the frequency of sampling in conventional direct digital control, and the capacity of the digital computer correspondingly be increased, if each variable in the process is controlled according to an analog control, and the analog reference value in the analog control is derived from a digital reference value which is sequentially corrected in accordance with a correction value which is obtained from the comparison of said digital reference value with a digital value derived from the process.

United States Patent De Schamphelaere [541 TIME SHARED DIGITAL Ann ANALOG PROCESS CONTROL 72 Inventor: Lucien Amede De Schamphelaere,

ssqnfi si [73] Assigneez Agfa-Gevaert, Mouse l, Belgium [22] Filed: Sept. 9, 1970 [2l] Appl.No.: 70,676

[51] Int. Cl..... ..G05b 6/02,-G06j 3/00 [58] Field of Search ..235/l5l.l, 150.5

[56] References Cited UNITED STATES PATENTS 2,932,47l 4/ 1960 Exner et ai. .343/7 ED ABSTRACT A digital computer is used in a time sharing technique to control a plurality of control circuits. The frequency of sampling f, may be low in comparison with the frequency of sampling in conventional direct digital control, and the capacity of the digital computer correspondingly be increased, if each variable 'in the process is controlled according to an analog control, and the analog reference value in the analog control is derived from a digital reference value which is sequentially corrected in accordance with a correction value which is obtained from the comparison of said digital reference value with a digital value derived from the process.

11 Claims, 5 Drawing Figures PATENTEDUEB 12 I912 3.705; 978

SHEET 1 BF 5 Fig.1

PATENTEDHEB 12 W 3; 705 978 SHEET 4 OF 5 Fig.4

ADC

1 I TIME SHARED DIGITAL AND ANALOG-PROCESS CONTROL The present invention relates to a method and a .device for the control of several variables forprocess control purposes.

The accuracy with which the value of a variable in a process control system can be made to correspond'to an intended or reference value (set-point) mainly depends on the accuracyof thedevice for measuring the variable, i.e. the transducer, the linearity of the amplifier which amplifies the output signal of the transducer,

In spite of the advantages which have been mentioned hereinbefore, the introduction of digital techniques into'process control systems becomes only economically acceptable if the number of control circuits whichis handled by onedigital control apparatus, is great.

However, in conventional DDC the number of circuits which can be handled by a digital computer is limited for the following two major reasons.

First, the introduction of time sharing techniques no longer permits a continuous flow of information in the different control circuits. To obtain stability of control, the frequency of sampling f, must be high in comparison with the undamped resonant frequencies of the closed control loops. The term frequency of sampling-means the number of samplings carried out per unit of time. In the further description the minute will be used as said unit of time. It is generally admitted that f, should be at least 8 times greater than the undamped resonant frequency of the control circuit. A common value of f, in industrial'applications of DDC is situated between 6 and 60 samplings per minute, but

velocity, flow-rate, can be measured by transducers I which directly produce a digital output. In case where a direct digital measurement is impossible, a convertor, called hereinafter ADC, maybe used which converts an analog measurement value into a digital value.

Furthermore, the accuracy of the setting of the reference value only depends on the resolving power of the means, e.g. binary or decimal switches, for producing such value. Also, the accuracywith which the control error may be determined by digital techniques and with which, starting from this error, the proportional, integrating and in somecases also differentiating terms of the output signal of the controller can be derived and summed, is mainly determined by the resolving power of the device for producing the digital reference value, v

and of the digital transducer or ADC convertor.

A factor which limits the industrial application of digital techniques is the relative high cost of measuring and control apparatus involved in these techniques.

It has been proposed therefore to operate according to a time sharing technique, so that one digital control apparatus may be used for controlling a plurality of variables.

An example of this technique is' known as direct digital control, called hereinafter DDC. The technique comprises the use of a digital computer for carrying out the required calculations and for storing reference values, measuring parameters, intermediate results, etc.

Besides the advantage of a high static control accuracy, DDC offers many other advantages only a few of which are indicated hereinafter.

The computer can take care of accurate checking of limit values of the measured values, control errors and output signals without need for additional hardware.

Data logging can be done with only limited additional apparatus.

Reference values, limit values and measuring parameters can be automatically set and modified.

The computer may be used for so-called adaptive or optimizing control. Since the reference values of the different control circuits are present in the memory of the computer, the communication between the adaptive or optimizing controller and the ordinary controllers can occur without additional hardware.

higher values of f, are required in the case where very fast changing variables, e. g. speed or position, are to be controlled. Since each control circuit requires a certain calculation time on the computer, it will be understood that the number of circuits which can be handled by the computer will be inversely proportional to the resonant frequencies of said circuits.

Second, the core store of the computer forms a limit for the number of control circuits which can be handled by the computer. As a matter of fact, a considerable quantity of data must be stored in the memory of the computer for each connected variable. These data include the information which determines the manner in which the received measuring signal must be linearized and compensated, the information required for the calculation of the output signal such as reference value, measurement parameters, previous value of the measurement value, previous value of the time integral of the control error, etc., and finally the information which relates to the checking of the limit values of the control error, the measured value and of the output signal. All this information is normally stored in the corestore of the computer, because the relatively high sampling frequency f, would make it unpractical to store this information in a back-up memory device.

Finally, it should be mentioned that if a digital computer is used in the control of a complex manufacturing process, there may be good reasons for not using all the available calculation time and the complete memory capacity of the computer for ordinary control. Thus it may be desirable to keep a considerable part of the capacity of the computer free for control functions at a higher level such as adaptive and optimizing control, and for special calculations in respect of production management.

The present invention aims to provide a method which permits the number of variables which may be handled by one digital measuring and control device to be considerably increased while maintaining all the advantages which are ofl'ered by digital control techniques.

According to the present invention a method for controlling a plurality of variables in a process comprises:

I a. sequentially comparing a digital reference value (r,,) for each variable in the process with a digital value (m derived from the process in order to produce a control error (e b. feeding each said control error (e sequentially to a digital computer in order to produce a corresponding correction value (14,), I

c. correcting each digital reference value (r sequentially, in accordance with the corresponding correction value (u deriving a corresponding analog reference value (r',,) from each corrected digital reference value,

. continuously measuring the actual value-(m of each variable in the process according to an analog measurement and comparing it with r the corresponding derived analog reference value (r',,),

and

. feeding the controlerror (e resulting from the comparison between both values to an analog controller which controls the'corresponding variable in the process.

The digital value (m may either be directly produced by a digital transducer, or be obtained by the conversion of the analog signal produced by an analog transducer into adigital signal by means of an ADC convertor.

Whereas analog control offers no high static accuracy but a quick response, digital control is very accurate but has a slower correction effect, and it thus will be apparent that bothcontrols may supplement each other in an almost ideal way.

A device for controlling a plurality of variables in a process may comprise according to the present invention:

a. an analog controller (C,) for each variable in the process (P),

b. a generator (R) which produces a digital reference value (r for each variable,

c. means which produces a digital measured value (m,,) for each variable in the process,

In FIG. 1 the block diagram of only one control circuit is shown in order to facilitate the description of the d. comparator means (8,) which compares the digital reference value (r with the digital value (m of a variable and which produces an error signal (e,),

e. a digital controller (C and means for connecting sequentially the different error signals (e,) to the input of said controller,

f. means for connecting the correction output signals (14,) produced by the digital controller sequentially to summers 8,, one summer being provided for each variable in the process, and each summer adding the signal (u,) to the corresponding digital reference value (r to produce a corrected reference signal (r',;).

The invention will be described hereinafter by way of example with reference to the accompanying drawings wherein FIG. 1 is a block diagram of one control circuit;

FIG. 2 is a block diagram of a plurality of control circuits;

FIG. 3 is a block diagram of several control circuits, wherein only one DAC convertor is used;

FIG. 4 is a block diagram of several control circuits,

wherein only an analog transducer is provided for each invention.

The diagram comprises the following main elements. A process P which must be controlled since it may be disturbed by influences p. The process P may be, for instance, a photographic coating process wherein the speed of a web must be controlled. The actual speed is measured by transducers T and T which produce a digital measurement signal m,,, and an analog measure-.

ment signal m,,, respectively.

An analog controller C, which receives at its input the error signal is, and which produces an output signal :4 which directly influences the process P in the required sense; i;e. to reduce the error signal e A comparator S which compares the analog reference value r',, with the measured analog value m, and produces the control error signal e l A generator R which permits a desired digital reference value r to be produced which, in the present case, may represent the desired speed of the web in the process P.

A digital to analog convertor DAC, which converts the signal r into an analog signal r,,.

A comparator S which compares the digital reference signal r with the digital measurement value m and produces a digital error signal e,.

A digital controller C, which receives at its input the error signal e and which produces" a digital output signal. Said digital controller may be, and preferably is, a conventional multi-purpose digital computer.

A convertor DAC, which converts the digital output of C into an analog signal u Y Finally, a summer S which adds the signal u to the analog equivalent r, of the reference signal r,,, to produce the corrected reference signal r,,.

In the operation of the described control circuit, the functionof the controllers C and C is as follows. The analog controller C is capable of responding quickly to possible changes of the reference value r and to disturbances p in the process P, but no high static accuracy is required of said controller. As a consequence of the latter feature, no stringent requirements are to he put to the accuracy, the linearity and the drift of the transducer T and the amplifier which may be required to produce the output m,,, the comparator S the converter DAC and the amplifier and/or integrator which may be incorporated in C The digital controller C on the contrary, may have a response which is relatively slow but is inherently constant as compared with the static accuracy of the analog control system which is liable to change rapidly. The output of C is converted into an analog signal a which is added to the analog equivalence of the reference value r in order to produce the corrected reference signal r' which corrects the static inaccuracy of the analog control circuit. This correction is based on the high static accuracy of digital control and on the integrating characteristics of C Thus, controllers C and C behave differently but, when. applied in the technique of process control as described hereinbefore, they virtually complement each other.

It is important for the accuracy of the control system that C, should have an integrating characteristic. In

most cases this integrating characteristic will suffice for the proper working of the control without need for C, to possess more complex control characteristics.

A controller with integrating action is characterized by its repetition frequency K, which indicates how many times the output signal of the controller increases with a value which corresponds to the value of the input signal, per unit of time.

If a controller C, which has only an integrating characteristic works in time sharing for the correction of several analog controllers, such as shown in FIG. 2, a sampling frequency f, which is about times higher than the repetition frequency K, provides a stable control.

It is precisely on account of this feature that the method according to the present invention is advantageous over conventional DDC. Whereas in DDC the minimum value of f, is determined exclusively by the process characteristics, said value is determined in the present method by an adjustable factor K,.

Although K, and thus also f,, may theoretically be chosen very low, they shall preferably be taken not lower than 0.1 period per minute in practice, unless the process does require otherwise. As a matter of fact, for frequencies lower than K, the digital controller C, is no longer effective and the controlling function is taken over completely by the analog controller. However, an analog controller which has a good low-frequency response necessarily is complicate and costly. In addition, in view of a good process control it is not desirable that f, should be lower than 1 period per minute.

The result of all this is that the sampling frequency f, in a circuit as shown in FIG. 2 which now will be described may be 10 to 100 times lower than in common DDC, and the time which a computer must spend on the calculations for a number of variables, is accordingly reduced by a factor of 10 to 100.

The block diagram of FIG. 2 represents a control arrangement for controlling 1; variables in processes P, only three of which have been shown. The circuit of each process has an associated DAC convertor for they digital reference value r,, set at the devices R, a summer 8,, which adds to the analog reference signal r, the correction value u, stored in an analog memory M, e.g. a capacitor, and a comparator S The memory M is required for storing the analog value u between two successive samplings. The digital control in the circuit occurs through the intermediary of only one digital control device C, which is connected successively into the different loops by switch means, represented in the figure in the form of an ordinary step switch K but which in practice will comprise solid state switches. The digital controller C, is also provided with memory circuits for storing the time integral of the control error of the different control circuits.

It will be understood that in the present arrangement the digital control is imparted periodically and sequentially. It is clear that the digital controller C,, e.g. digital computer, is capable of controlling a plurality of circuits or, as the case may be, can spend a part of its time dealing with other problems.

The lowering of the sampling frequency f, to 1 period per minute or even less, as mentioned hereinbefore, has also another important aspect. As a matter of fact, at such low sampling frequency it becomes possible to store the loop data, which in an ordinary DDC form a heavy lead for the core store, in a back-up memory and to introduce them sequentially and group-wise into the core store for carrying out the calculations. If for a determined group of control circuits the calculations have been carried out and the new correction values u, have been transmitted to the corresponding analog control circuits C the loop data are stored again in the back-up memory so that the core store is released for receiving the data of a next group of control circuits. The grouping of the control circuits can occur, for instance on the basis of process divisions. This means that one digital computer can control, for instance in the photographic industry, an extrusion line for the extrusion, the stretching, and the heat-treatment of polyethylene terephthalate film, several coating lines, each line including different coating stations and a drying station, etc. v

It will be understood thatin the arrangement of FIG. 2, and also in the arrangements of FIGS. 3 and 4 to be described hereinafter, the devices R, to R, actually are not present in the form of separate units as shown in the diagrammatic representations, but that they form cells of the computer C, wherein the corresponding reference values r are stored.

FIG. 3 shows diagrammatically that the summing of the reference value r and the correction value u, can also be done by digital techniques so that the DAC converters which in the arrangement of FIG. 2 are required for each control circuit, may be omitted. The memory circuits M now store the last value of r, between two successive samplings.

The summing of u, and r is actually done by the digital controller C, itself. As a consequence thereof, it is preferred to incorporate in said controller a priority mechanism which permits a change in the reference value of a given control loop to be transmitted to the memory element concerned as soon as this change occurs. If the transmission of a change in the reference value were delayed until the next sampling sequence, the reaction of the analog controller would be unnecessarily delayed.

In a modified arrangement, it is possible that the digital controller C, calculates the increments of two successive values of r, rather than r, itself. In such case the analog memory of each control circuit must be replaced by an analog integrator, which totalizes the different increments.

In FIG. 4, a simplified arrangement is shown wherein for the variable in each process only an analog transducer T, is provided. The analog measurement values m,, are converted into a digital value by an ADC converter which is provided between the switch K and the comparator S,.

An additional advantage of the arrangements according to FIGS. 3 and 4 over conventional DDC is that in case of defect of the digital controller, all different loops remain under the continuous control of the analog controllers. The memory elements M keep the last produced value R',,.

In order to ensure that the zero drift of the analog memories or of the integrators, which may become considerable after prolonged defect of the digital controller, does not introduce serious errors in the process being controlled, it may be desirable to provide the posssibility for each analog controller in FIG. 3 or 4 to be switched over to an additional device which produces a definite predetermined analog reference value. In order to permit a .smooth transition, the analog reference signal must previously be modified temporarily to correspond with the signal r' stored in the memory element M. The electric circuit for one process is shown in FIG. 5 in which a switch L is provided which permits the input of comparator S to be switched from the memory M to the device R wherein an analog reference value r",, may be set. A comparator D is connected between the output of M and R and permits the adjustment of R so that the produced analog reference value r",, is equal to r',,. The comparator D may be a difierential voltmeter.

The circuits R' may be simple so that the provision of one circuit per process does not materially increase the complexity of the arrangement. Only one comparator D is required, since it may be provided with appropriate switch means for successive connection into the different circuits R as they must be adjusted.

In .the same way, a switched indicator may be provided for indicating the output signals u of the different controllers C Finally, it should be understood that the method of correcting different analog controllers by means .of one digital controller according to the present invention, may also be used if the analog control loops include feed-forward correction or if they contain means for eliminating interaction between different variables.

lclaim: a

l. A method for controlling a plurality of variables in a process which comprises: w

a. sequentially comparing a digital reference value (r,,,) for each variable in the process with a digital value (m observed in the process in order to produce a control error (e,),

b; feeding each control error (e )sequentially to a digital computer in order to produce a corresponding correction value (u,),

c. correcting each digital reference value (m) sequentially in accordance with the corresponding correction value (u,),

d. deriving a corresponding analog reference value (r,,) from each corrected digital reference value,

e. continuously measuring the actual value (m,,) of each variable in the process according to an analog measurement and comparing it with the corresponding derived analog reference value (r',,) to produce a control error (c2). and

f. feeding the control error (e,) resulting from such comparison to an analog controller which controls the corresponding variable in the process.

2. Method according to claim 1, wherein the digital value m is directly measured in the process.

3. Method according to claim 1, wherein the digital value (m is obtained by converting an analog measured value of a variable in the process into a corresponding digital value.

4. Method according to claim 1, wherein the correction value (14,) is an analog signal and the digital reference value (r,,) is converted into an analog signal (r before it is corrected by the analog signal (14,).

5. Method according to claim 1, wherein each correction value (14 is stored during the sequential operation of the di 'tal com ter.

6. ethod ccording lo claim 1, wherein each cor- (1. comparator means (8,) which compares the digital I reference value (r with the digital measured value (m of a variable and which produces an error signal (e,), V

e. a digital controller (C and means for connecting sequentially the difference error signals (e,) to the input of said controller to produce correction output signals (a i f. means for connecting the correction output signals (:4 produced by the digital controller sequentially to summers one summer being provided for each variable in the process, and each summer adding the correction signal (u to the corresponding digital reference value (r,,) to produce a corrected reference value (rf g. convertor means which converts each said corrected digital reference value into a corresponding analog value (H p I h. means for producing an analog measured value (m,,) for each variable in the process, and

i. comparator means (S which compares said derived analog value (r',,) with the measured analog value (m,) for each variable, and which produces an error signal which controls the corresponding analog controller C 8. A device according to claim 7, wherein said digital controller C is a general purpose digital computer.

9. A device according to claim 7, wherein said means for producing a digital measured value (m,,) for each variable in the process comprises an analog to digital converter (ADC) which converts an analog value (m,,) of a variable measured in the process into a corresponding digital value.

10. A device according to claim 7, wherein a memory circuit is provided for each variable to be controlled which stores the correction output signal (u produced by the digital controller C, for each variable.

11. A device according to claim 7, wherein a memory circuit is provided for each variable to be controlled in the process, and each said memory circuit stores the analog value (r' corresponding with the corrected digital reference value, which is fed to a corresponding comparator S UNITED STATES PATENT OFFICE CERTIFICATE OF CORRECTION Patent; No. ,9 8 Dated December 12, 1972 f Lucien Amede De SCHAMPHELAERE It is certified that error appears in the above-identified patent and that said Letters Patent are hereby corrected as shown below:

Claim 7 Column 8, line 28 after "summers", insert Signed and sealed this 1st day of May 1973.

(SEAL) Attest:

EDWARD l FLETCHER, ROBERT GOTTSCHAILK I ttesting Officer Commissioner of Patents FORM PO-105O (10-69) USCOMM-DC OO376-P69 i 0.5. GOVERNMENT PRINTING OFFICE IQQ (J-Ili-Sll 

1. A method for controlling a plurality of variables in a process which comprises: a. sequentially comparing a digital reference value (rd) for each variable in the process with a digital value (md) observed in the process in order to produce a control error (e1), b. feeding each control error (e1)sequentially to a digital computer in order to produCe a corresponding correction value (u1), c. correcting each digital reference value (rd) sequentially in accordance with the corresponding correction value (u1), d. deriving a corresponding analog reference value (r''a) from each corrected digital reference value, e. continuously measuring the actual value (ma) of each variable in the process according to an analog measurement and comparing it with the corresponding derived analog reference value (r''a) to produce a control error (e2), and f. feeding the control error (e2) resulting from such comparison to an analog controller which controls the corresponding variable in the process.
 2. Method according to claim 1, wherein the digital value (md) is directly measured in the process.
 3. Method according to claim 1, wherein the digital value (md) is obtained by converting an analog measured value of a variable in the process into a corresponding digital value.
 4. Method according to claim 1, wherein the correction value (u1) is an analog signal and the digital reference value (rd) is converted into an analog signal (ra) before it is corrected by the analog signal (u1).
 5. Method according to claim 1, wherein each correction value (u1) is stored during the sequential operations of the digital computer.
 6. Method according to claim 1, wherein each corresponding analog reference value (r''a) is stored during the sequential operations of the digital computer.
 7. A device for controlling a plurality of variables in a process which comprises: a. an analog controller (C2) for each variable in the process b. a generator (R) which produces a digital reference value (rd) for each variable, c. means which produces a digital measured value (md) for each variable in the process, d. comparator means (S1) which compares the digital reference value (rd) with the digital measured value (md) of a variable and which produces an error signal (e1), e. a digital controller (C1) and means for connecting sequentially the difference error signals (e1) to the input of said controller to produce correction output signals (u1), f. means for connecting the correction output signals (u1) produced by the digital controller sequentially to summers one summer being provided for each variable in the process, and each summer adding the correction signal (u1) to the corresponding digital reference value (rd) to produce a corrected reference value (r''d), g. convertor means which converts each said corrected digital reference value into a corresponding analog value (r''a) h. means for producing an analog measured value (ma) for each variable in the process, and i. comparator means (S2) which compares said derived analog value (r''a) with the measured analog value (ma) for each variable, and which produces an error signal which controls the corresponding analog controller C2.
 8. A device according to claim 7, wherein said digital controller C1 is a general purpose digital computer.
 9. A device according to claim 7, wherein said means for producing a digital measured value (md) for each variable in the process comprises an analog to digital converter (ADC) which converts an analog value (ma) of a variable measured in the process into a corresponding digital value.
 10. A device according to claim 7, wherein a memory circuit is provided for each variable to be controlled which stores the correction output signal (u1) produced by the digital controller C1 for each variable.
 11. A device according to claim 7, wherein a memory circuit is provided for each variable to be controlled in the process, and each said memory circuit stores the analog value (r''a), corresponding with the corrected digital reference value, which is fed to a corresponding comparator S2. 